import request from '@/utils/request'
export function getPropList(page) {
  return request({
    url: '/back/shop/commodityKindSpec',
    method: 'get',
    params: { type: 'lists', page }
  })
}
export function getcategoryList() {
  return request({
    url: '/back/shop/commodityKindSpec',
    method: 'get',
    params: { type: 'getKindAll' }
  })
}
export function addOrEditPropItem({ id, first_cate_id, spec, spec_name }) {
  return request({
    url: '/back/shop/commodityKindSpec',
    method: 'post',
    data: { type: 'change', id, first_cate_id, spec, spec_name }
  })
}
export function getPropDetail(id) {
  return request({
    url: '/back/shop/commodityKindSpec',
    method: 'get',
    params: { type: 'setKinds', id }
  })
}
